package com.yunji.base.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * @author : peter-zhu
 * @date : 2024/12/19 18:09
 * @description : TODO
 **/
@Builder
@Data
@ApiModel(value = "员工查询参数", description = "员工查询参数")
public class StaffFiledDTO implements Serializable {
    private static final long serialVersionUID = -8329002936434716872L;

    @ApiModelProperty("员工ID")
    private Long id;

    private Long agentId;
    private Long siteId;

    @ApiModelProperty("代理商名称")
    @Length(message = "代理商名称不能超过{max}个字符", max = 15)
    private String agentName;

    @ApiModelProperty("网点名称")
    private String managerName;


    @ApiModelProperty("站点名称")
    @Length(message = "网点名称不能超过{max}个字符", max = 15)
    private String siteName;

    @ApiModelProperty("员工名称")
    @Length(message = "员工姓名不能超过{max}个字符", max = 6)
    private String staffName;

    @ApiModelProperty("员工电话")
    @Length(message = "员工电话不能超过{max}个字符", max = 11)
    private String staffTel;

    @ApiModelProperty("搜索字段")
    private String searchFiled;
}
